﻿<%@ Control Language="C#" %>
<%@ Import Namespace="Buffalo.Lib.Common" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        tbText.Text = Util.ToSafeString( ViewData["Copyright"]);
    }
 </script>

<ext:Window 
    ID="winAbout" 
    runat="server" 
    Title="About" 
    Icon="Information" 
    Modal="true"
    Height="225" 
    Width="350"
    Layout="fit"
    Hidden="true">
    <Items>
        <ext:TabPanel runat="server" Border="false">
            <Items>
                <ext:Panel runat="server" Title="Info" Padding="5" BodyStyle="background-color:#fff;">
                    <Content>
                        <%=ViewData["Copyright"]%><br /><br />
                        <a href='<%=ViewData["CompanyUrl"]%>' target="_blank"><%=ViewData["CompanyUrl"]%></a><br /><br />
                        Degsined by <a href='<%=ViewData["CompanyUrl"]%>' target="_blank"><%=ViewData["DesignBy"]%></a>
                    </Content>
                </ext:Panel>

            </Items>
        </ext:TabPanel>
    </Items>
    <BottomBar>
        <ext:Toolbar runat="server">
            <Items>
                <ext:ToolbarFill runat="server" />
                <ext:ToolbarTextItem ID="tbText" runat="server"/>
                <ext:ToolbarSpacer runat="server" />
            </Items>
        </ext:Toolbar>
    </BottomBar>
</ext:Window>